/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2023-09-25 17:48:48
 * @LastEditors: huangtianyang
 * @LastEditTime: 2023-09-26 11:36:02
 * @FilePath: \cxl-admin\src\apis\consume\consume.ts
 */
import axios from '../../axios/index'

export interface consumeParams {
    current: number
    size: number
    companyId?: string
}

export interface consumeParamsInterface extends consumeParams {
    packageNameNumber?: number
    packageTypeList?: number[]
    payStatus?: number
    productType?: number
    queryDateEnd?: string
    queryDateStart?: string
}

/**
 * 消费列表
 * @returns
 */
export const consumeList = (params: consumeParamsInterface) => {
    return axios({
        method: 'get',
        url: '/api/mall/company/store/report-order-list',
        params
    })
}

export const consumeStatisticsList = (params: consumeParams) => {
    return axios({
        method: 'get',
        url: '/api/mall/company/store/report-order-statistics-list',
        params
    })
}
